<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Testing</title>
	<link rel="stylesheet" type="text/css" href="<c:url value='/css/common.css'/>">
	
	<script type="text/javascript" src="<c:url value='/js/jquery.js'/>"></script>
	<script type="text/javascript" src="<c:url value='/js/common.js'/>"></script>
	<c:import url="/common/rootVar.jsp"></c:import>
</head>
<body>
	<h1>Testing</h1>
	<script language="Javascript">
	function tSaveResult(){
		$.ajax({
			url			: ROOT + "/logined/result/save.do"
			,data		: {
						quesId		:1
						,id			:0
						,parentId	:0
						,"s.3.str"	:"哈哈哈"
						,"s.3.num"	:null
						,"s.39.str"	:null
						,"s.39.num"	:3
						,"s.37.str"	:",,,,,,,Other option"
						,"s.37.num"	:"1,,3,,5,,,8"
					}
			,processData: true
			,cache		: false
			,async		: true
			,type		: "POST"
			,dataType	: "html"
			,success	: function(html){
				alert(html);
			}
		});
	}
	</script>
	<button onclick="tSaveResult()">Save Result</button>
	<script language="Javascript">
	function tDeleteResult(){
		$.ajax({
			url			: ROOT + "/logined/result/del.do"
			,data		: {id:1}
			,processData: true
			,cache		: false
			,async		: true
			,type		: "POST"
			,dataType	: "html"
			,success	: function(html){
				alert(html);
			}
		});
	}
	</script>
	<button onclick="tDeleteResult()">Delete Result</button>
</body>
</html>